package com.ruoyi.common.core.response;

/**
 * 操作成功Controller返回結果
 *
 */
public class SuccessResponse extends ResponseResult implements Response {

    /**
     * 返回消息
     */
    private String msg;

    public SuccessResponse() {
        this.msg = ResponseEnum.SUCCESS_CODE.getMsg();
    }

    public SuccessResponse(String message) {
        this.msg = message;
    }


    /**
     * 返回结果编码
     *
     * @return
     */
    @Override
    public String getCode() {
        return ResponseEnum.SUCCESS_CODE.getCode();
    }

    /**
     * 返回结果信息
     *
     * @return
     */
    @Override
    public String getMsg() {
        return this.msg;
    }
}
